SYNC MASK

This command will set the engine to ignore certain cameras, thus saving performance when the cameras are not needed.

  Syntax
SYNC MASK Ignore Camera Mask
  Parameters
Ignore Camera Mask
Dword
This value is a positive number between 0 and 4294967295.

  Returns

This command does not return a value.

  Description

The parameter is a DWORD mask, which by default is set to 0xFFFFFFFF. You can adjust this mask to filter out the cameras you do not wish to render. Camera zero is represented in bit 1, camera one in bit 2, and so on. A bit state of zero means the camera will not be rendered, and a bit state of 1 means the camera will be rendered, as is the default behaviour.

  Example Code
SYNC ON
MAKE CAMERA 1
SET CAMERA VIEW 1,0,0,100,100
SYNC MASK 0x00000002
PRINT "only render camera one, ignore zero"
SYNC
WAIT KEY
  See also

CORE Commands Menu
Index